package com.bao.shop.controller;

import com.bao.shop.service.UserInfoManagerImpl;

import java.util.Scanner;

public class Test {
    public static final UserInfoManagerImpl USER_INFO_MANAGER=new UserInfoManagerImpl();
    public static final Scanner INPUT=USER_INFO_MANAGER.INPUT;
    public static void main(String[] args) {
        USER_INFO_MANAGER.inital();

        while (true){
            USER_INFO_MANAGER.mainMenu();
            switch(INPUT.nextInt()){
                case 1:
                    USER_INFO_MANAGER.searchAll();
                    break;
                case 2:
                    USER_INFO_MANAGER.deleteUserInfo();
                    break;
                case 3:
                    USER_INFO_MANAGER.addUserInfo();
                    break;
                default:
                    System.err.println("退出程序");
                    return;
            }
        }
    }
}
